package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Goods;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface GoodsService {


    ServiceVO getCode();


    Page<Goods> getListInventory(Integer page, Integer rows, String codeOrName, Integer goodsTypeId);

    Page<Goods> getList(Integer page, Integer rows, String goodsName, Integer goodsTypeId);

    void save(Goods goods);

    void update(Goods goods, Integer goodsId);

    int delete(Integer goodsId);

    Page<Goods> getNoInventoryQuantity(Integer page, Integer rows, String nameOrCode);

    Page<Goods> getHasInventoryQuantity(Integer page, Integer rows, String nameOrCode);

    void saveStock(Integer goodsId, Integer inventoryQuantity, double purchasingPrice);

    int deleteStock(Integer goodsId);

    List<Goods> listAlarm();
}
